package animal;

public class Dog extends Animal {
    private String colour;

    Dog() {
        super();

    }

    Dog(String colour, String name, int age, double weight) {

        super("长安", 6, 21.8);
        this.colour = colour;
        System.out.println("Dog的构造代码块被执行了.........");
    }

    static {

        System.out.println("Dog::static");
    }

    {
        System.out.println("Dog实例代码块被执行了.....");
    }


    public void drink() {
        System.out.println(this.name + "正在喝水.........");
    }

    public void sunbathe() {
        System.out.println(this.name + "正在晒太阳..........");
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
    }
}
